package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TFaceGateCardMapper;
import com.ruoyi.system.domain.TFaceGateCard;
import com.ruoyi.system.service.ITFaceGateCardService;

/**
 * 人脸闸机虚拟卡片Service业务层处理
 * 
 * @author crm
 * @date 2023-04-10
 */
@Service
public class TFaceGateCardServiceImpl implements ITFaceGateCardService 
{
    @Autowired
    private TFaceGateCardMapper tFaceGateCardMapper;

    /**
     * 查询人脸闸机虚拟卡片
     * 
     * @param id 人脸闸机虚拟卡片主键
     * @return 人脸闸机虚拟卡片
     */
    @Override
    public TFaceGateCard selectTFaceGateCardById(Long id)
    {
        return tFaceGateCardMapper.selectTFaceGateCardById(id);
    }

    /**
     * 查询人脸闸机虚拟卡片列表
     * 
     * @param tFaceGateCard 人脸闸机虚拟卡片
     * @return 人脸闸机虚拟卡片
     */
    @Override
    public List<TFaceGateCard> selectTFaceGateCardList(TFaceGateCard tFaceGateCard)
    {
        return tFaceGateCardMapper.selectTFaceGateCardList(tFaceGateCard);
    }

    /**
     * 新增人脸闸机虚拟卡片
     * 
     * @param tFaceGateCard 人脸闸机虚拟卡片
     * @return 结果
     */
    @Override
    public int insertTFaceGateCard(TFaceGateCard tFaceGateCard)
    {
        tFaceGateCard.setCreateTime(DateUtils.getNowDate());
        return tFaceGateCardMapper.insertTFaceGateCard(tFaceGateCard);
    }

    /**
     * 修改人脸闸机虚拟卡片
     * 
     * @param tFaceGateCard 人脸闸机虚拟卡片
     * @return 结果
     */
    @Override
    public int updateTFaceGateCard(TFaceGateCard tFaceGateCard)
    {
        return tFaceGateCardMapper.updateTFaceGateCard(tFaceGateCard);
    }

    /**
     * 批量删除人脸闸机虚拟卡片
     * 
     * @param ids 需要删除的人脸闸机虚拟卡片主键
     * @return 结果
     */
    @Override
    public int deleteTFaceGateCardByIds(Long[] ids)
    {
        return tFaceGateCardMapper.deleteTFaceGateCardByIds(ids);
    }

    /**
     * 删除人脸闸机虚拟卡片信息
     * 
     * @param id 人脸闸机虚拟卡片主键
     * @return 结果
     */
    @Override
    public int deleteTFaceGateCardById(Long id)
    {
        return tFaceGateCardMapper.deleteTFaceGateCardById(id);
    }
}
